import 'package:flutter/material.dart';

class PopDecoratorTheme extends InheritedWidget {
  final PopDecorator data;

  PopDecoratorTheme({Key key, this.data, Widget child})
      : super(key: key, child: child);

  @override
  bool updateShouldNotify(InheritedWidget oldWidget) => true;

  static PopDecoratorTheme of(BuildContext context) {
    return context.inheritFromWidgetOfExactType(PopDecoratorTheme);
  }
}

class PopDecorator {
  final double maxWidth;
  final double itemHeight;
  final Color popBackgroundColor;
  final Color dividerColor;

  const PopDecorator({
    @required this.maxWidth,
    this.popBackgroundColor = const Color(0x779E9E9E),
    this.itemHeight = 40.0,
    this.dividerColor = Colors.grey,
  });
}
